package util;

import util.annotation.Check;
import util.annotation.FromTo;
import util.annotation.ValueIn;
import util.annotation.NotNull;

/**
 * Created by chenyipu on 2017/9/8.
 */
@Check(name = "参数消息")
public class Param {
    @ValueIn(ranges = {"001","002"},name = "类型值")
    private String type;


//    private Param
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @NotNull(name = "姓名")
    private String name;

    @NotNull(name ="年龄")
    @FromTo(from = 1.0,to = 150.8,name ="年龄")
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //    @NotNull(name="某物")
//    private Sth sth;
//
//    public Sth getSth() {
//        return sth;
//    }
//
//    public void setSth(Sth sth) {
//        this.sth = sth;
//    }
}
